package com.tanhua;

import com.tanhua.template.HuanXinTemplate;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest
public class HuanXinDemo2 {

    @Autowired
    private HuanXinTemplate huanXinTemplate;

    @Test  //使用环信的必要要求：先获取token(接下来的任何一个动作都会传递token)
    public void test1(){
        huanXinTemplate.register(2L);
    }
}
